package xhwl.insurance.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import xhwl.insurance.R;
import xhwl.insurance.ui.LoginActivityV2;
import xhwl.insurance.util.SpUtil;

/**
 * Created by fuyi on 2017/10/13.
 */

public class TwoBootPageFragment extends LauncherBaseFragment implements View.OnClickListener {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rooView=inflater.inflate(R.layout.fragment_stereoscopic_launcher, null);
        ImageView imgView_immediate_experience=(ImageView) rooView.findViewById(R.id.imgView_immediate_experience);
        imgView_immediate_experience.setOnClickListener(this);
        return rooView;
    }
    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.imgView_immediate_experience:
                SpUtil.putString(SpUtil.GUIDE, "2");
                Intent intent = new Intent();
                intent.setClass(getActivity(),LoginActivityV2.class);
                startActivity(intent);
                getActivity().finish();
                break;
        }

    }

    @Override
    public void startAnimation() {

    }

    @Override
    public void stopAnimation() {

    }
}
